package top.alanshelby.advice;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * 前置通知
 */
public class MyBeforeAdvice implements MethodBeforeAdvice {

    // 切面，对应代理模式中的次要业务
    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println("···洗手···");
    }
}
